import {defineConfig} from 'vitepress'

// https://vitepress.dev/reference/site-config
export default defineConfig({
    title: "note",
    description: "记录点滴...",
    //打包输出目录
    outDir: "./dist",
    base: "/note",
    lang: "zh-CN",

    themeConfig: {
        //搜索框
        search: {
            provider: 'local'
        },

        //导航栏
        nav: [
            {text: '首页', link: '/'}
        ],

        //侧边栏
        sidebar: [
            {
                text: 'vitepress官方示例文档',
                //折叠开关
                collapsed: true,
                items: [
                    {text: 'Markdown Examples', link: '/doc/markdown-examples'},
                    {text: 'Runtime API Examples', link: '/doc/api-examples'}
                ]
            },
            {
                text: '数据篇',
                //折叠开关
                collapsed: true,
                items: [
                    {text: 'redis+mysql设计延时任务', link: '/doc/data/依赖redis+mysql设计的延时任务'},
                    {text: '数据权限过滤', link: '/doc/data/数据权限过滤'}
                ]
            },
            {
                text: 'Java基础篇',
                //折叠开关
                collapsed: true,
                items: [
                    {text: 'JVM参数', link: '/doc/java/jvm_params'},
                    {text: '文件下载问题', link: '/doc/java/文件下载与响应头属性问题'},
                    {text: 'Java8 新特性笔记', link: '/doc/java/Java8 新特性笔记'},
                    {text: '线程池使用问题', link: '/doc/java/涉及线程池的接口响应超时'}
                ]
            },
            {
                text: '设计',
                collapsed: true,
                items: [
                    {text: '观察者模式', link: '/doc/design/观察者'}
                ]
            },
            {
                text: 'security',
                collapsed: true,
                items: [
                    {text: 'security oauth2', link: '/doc/security/security oauth2'},
                    {text: 'security oauth2实际应用', link: '/doc/security/security oauth2实际应用'},
                    {text: 'spring security的基本使用', link: '/doc/security/spring security的基本使用'},
                    {text: 'spring security的实际应用', link: '/doc/security/spring security的实际应用'},
                    {text: 'springboot单应用jwt', link: '/doc/security/springboot单应用jwt'}
                ]
            },
            {
                text: 'spring',
                collapsed: true,
                items: [
                    {text: 'AOP自定义注解', link: '/doc/spring/AOP自定义注解'},
                    {text: 'spring cloud相关概念', link: '/doc/spring/day01 spring cloud相关概念'},
                    {text: 'gateway请求RSA+AES加解密', link: '/doc/spring/gateway请求信息RSA+AES加解密'},
                    {text: 'spring相关', link: '/doc/spring/spring相关'},
                    {text: '扩展springboot对环境的操作', link: '/doc/spring/扩展springboot启动中对环境的操作'}
                ]
            },
            {
                text: 'utils',
                collapsed: true,
                items: [
                    {text: 'excel导入工具类', link: '/doc/utils/excel导入工具类'},
                    {text: 'excel导出工具类', link: '/doc/utils/excel导出工具类'},
                    {text: 'jasypt', link: '/doc/utils/jasypt'},
                    {text: 'pdf生成工具', link: '/doc/utils/pdf生成工具'},
                    {text: 'webservice调用代码生成', link: '/doc/utils/webservice调用代码生成'},
                    {text: '全局异常处理工具', link: '/doc/utils/全局异常处理工具'},
                    {text: '导出pdf（结合pdf生成工具）', link: '/doc/utils/导出pdf（结合pdf生成工具）'},
                    {text: '自定义序列化时字段注解', link: '/doc/utils/序列化时字段值根据字典转换的自定义注解'},
                    {text: '扩展javax.validation.Valid注解', link: '/doc/utils/扩展javax.validation.Valid注解'},
                    {text: '验证码登录', link: '/doc/utils/验证码登录'}
                ]
            },
            {
                text: 'redis',
                collapsed: true,
                items: [
                    {text: '搭建redis集群', link: '/doc/redis/搭建Redis缓存高可用集群'}
                ]
            }
        ],

        socialLinks: [
            {icon: 'github', link: 'https://github.com/vuejs/vitepress'}
        ]
    }
})
